//
//  MenuHeaderCollectionViewCell.m
//  Food
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#import "MenuHeaderCollectionViewCell.h"
#import "BaseHeader.h"

@implementation MenuHeaderCollectionViewCell
- (void)dealloc
{
    [_nameLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.nameLabel = [[UILabel alloc] init];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.nameLabel.frame = CGRectMake(0, 0, CollectionWidth, CollectionHeight);
}

@end
